<template>
	<view >
		<!-- 自定义导航栏 -->
		<u-navbar 
		:background="background"
		 title="主页"></u-navbar>
		<homePage></homePage>
		<footNav :currents='0'></footNav>
	
	</view>
</template>

<script>
	import homePage from '@/components/homePage/homePage.vue'
	import footNav from '@/components/footNav/footNav.vue'
	export default {
		name:'index',
		components:{homePage,footNav},
		data() {
			return {	
				background: {
					backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))'
				},
			}
		},
		created() {
			if(uni.getStorageSync('password')=='123456'){
				this.$u.route({
					url:'/pages/changePassword/changePassword'
				})
			}
		}
	}
</script>

<style lang="scss">
	
</style>
